package com.ycm.vo.user;

import com.ycm.enums.IdCardType;
import com.ycm.vo.BaseVo;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.ArrayList;
import java.util.List;

/**
 * @author ycm
 * @date 2024-11-13
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class UserVo extends BaseVo {
    private static final long serialVersionUID = 1L;

    /**
     * 姓名
     */
    @Schema(description = "姓名")
    private String name;

    /**
     * 昵称
     */
    @Schema(description = "昵称")
    private String nickName;

    /**
     * 年龄
     */
    @Schema(description = "年龄")
    private int age;

    /**
     * 证件类型
     */
    @Schema(description = "证件类型")
    private IdCardType idCardType;

    /**
     * 证件号
     */
    @Schema(description = "证件号")
    private String idCardNo;

    /**
     * 角色
     */
    @Schema(description = "角色")
    private List<String> roles = new ArrayList<>();

    /**
     * 权限
     */
    @Schema(description = "权限")
    private List<String> perms = new ArrayList<>();
}
